<?
require("config.php");

$location_status .= " | Delete";

$show_backnav = "color_menu";

$menuname = NULL;

$menutarget = NULL;

if (NULL!=$action){

   $Query = "delete from $table where id = $id Limit 1";
   myQuery($Query);

   header("location:" . $rela_path . "share/msg.php?v=15");

   exit;

}

if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
  }

$Query = "select * from $table where id = $id";
$r = myQuery($Query);

if (!$r) header("location:" . $rela_path . "share/msg.php?v=9002");
$Code = $r[0][1];
$Name = $r[0][2];
$Hex = $r[0][3];

require($rela_path . "inc/header.php");

?> 

<form action="" method="post" name="form1">
<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">&nbsp; </td>
  </tr>
  <tr> 
    <td><p>Are you sure to delete this color ? 
          <input type="Submit" class="button" name="Submit33" value="  Yes  ">
          <input type="button" class="button" name="Submit32" value="  No  " onClick="Redirect('color_menu.php',1);">
          <br>
          <br>
        </p>
        <table>
          <tr> 
            <td class="tdheader">Code :</td>
            <td><?print($Code)?> <input name="action" type="hidden" value="delete"> 
              <input name="id" type="hidden" value="<?print($id)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader">Name :</td>
            <td><?print($Name)?></td>
          </tr>
          <tr>
            <td class="tdheader">HEX# :</td>
            <td><?print($Hex)?></td>
          </tr>
        </table>
        <p><br>
          <br>
          <br>
          <br>
        </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p></td>
  </tr>
</table>
</FORM>
<?
require($rela_path . "inc/footer.php");
?>
